<li id='title_<?=$i?>' class='13'>
<select name='title<?=$i?>' id='title<?=$i?>'  class="full_select"  style="width:auto;">
<option value="">  </option>
<?
foreach($data as $key=>$val){
?>
  <option value="<?=$val->title_id?>" <?if($val->title_id==$s) echo "selected";?>><?=$val->value?></option>
<?
}
?></select>
</li>